package com.SmartClassroom.system.mapper;


import com.SmartClassroom.system.model.domain.LeaveRequest;
import com.SmartClassroom.system.model.dto.leave.LeaveQueryRequest;
import com.SmartClassroom.system.model.vo.LeaveRequestVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author baijiayu
* @description 针对表【LeaveRequest】的数据库操作Mapper
* @createDate 2024-11-19 11:01:52
* @Entity generator.domain.LeaveRequest
*/
public interface LeaveRequestMapper extends BaseMapper<LeaveRequest> {

    List<LeaveRequestVO> page(@Param("pagePara") Page<LeaveRequestVO> pageParam,
                              @Param("leaveQueryRequest") LeaveQueryRequest leaveQueryRequest);

    List<LeaveRequestVO> getQueryById(@Param("pagePara") Page<LeaveRequestVO> pageParam,
                                     @Param("leaveQueryRequest") LeaveQueryRequest leaveQueryRequest,
                                      @Param("studentId") Long studentId);
}




